﻿using System.Collections.Immutable;
using Turnable.Skills;

namespace Turnable.Characters;

public record Character(string Name, IImmutableDictionary<string, Ability> Abilities, IImmutableDictionary<string, Skill> Skills) : IComparable
{
    public Character(string Name) : this(Name, ImmutableDictionary<string, Ability>.Empty, ImmutableDictionary<string, Skill>.Empty)
    {
    }

    public int CompareTo(object? obj) => CompareTo((Character)obj!);

    public int CompareTo(Character other) => Name.CompareTo(other.Name);
}
